package cn.wolfcode.entity;

import lombok.*;

/**
 * @author 李新雨的项目86176
 * @version 1.0
 * @date 2024-10-31 22:28
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class QueryObject {
    //用户传递的当前页
    private int currentPage=1;
    //用户传递的每页显示条数
    private int pageSize=3;

    public int getStart(){
        return (currentPage-1)*pageSize;
    }
}
